package com.chianghao.rock.admin.system.role.dto;

import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("绑定角色和路由")
public class RoleAndRouteDto {

	
	@ApiModelProperty("角色ID")
	@NotNull(message="error:role.id,not.null")
	private Long roleId;
	
	@ApiModelProperty("路由集合ID")
	@NotEmpty(message="error:collecter,not.null")
	private List<Long> routeIds;
	
	@ApiModelProperty("类型[1路由/2路由按钮/3路由接口]")
	@NotEmpty(message="error:collecter,not.null")
	private Integer  type;
	
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public List<Long> getRouteIds() {
		return routeIds;
	}
	public void setRouteIds(List<Long> routeIds) {
		this.routeIds = routeIds;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	
	
	
}
